package domain;

import java.util.ArrayList;

public interface IDAOContact {

	
	public Contact addContact( String firstname, String lastname, String email);
	
	public Contact addContact( String firstname, String lastname, String email, String zip, String city, String country, String street, String phoneKind, String phoneNumber,  ArrayList<Long> groupId, String numSiret);
	
	public Contact addContact(Contact contact);
	
	public boolean deleteContact(long id);
	
	public Contact getContact(long id);
	
	public boolean modifyContact(long id, String firstname, String lastname, String email);
	
	public boolean modifyContact(long id, String firstname, String lastname, String email,
			String zip, String city, String country, String street,
			ArrayList<Long> groupId, String numSiret, int version);
	public ArrayList<Contact> getContactByFirstName(String firstname);
	
	public ArrayList<Contact> getContactByLastName(String lastname);
	public ArrayList<Contact> getAllContacts();
	public ArrayList<Contact> getContactByEmail(String email);
	
}
